#ifndef __STUDENT_H__
#define __STUDENT_H__

#include <string>
#include <functional>
#include "Common.h"
#include "Person.h"

class Student : public Person
{
    public:
        Student(std::string id, std::string name, size_t age, Klass &klass);
        virtual std::string Introduce();
        std::string WithName(std::function<std::string(std::string)> handler);
        bool IsIn( Klass &klass);
        bool operator==(const Student &person);
    private:
        Klass *klass;//生命周期可以不一样
};


#endif /* __STUDENT_H__ */